<template>
  <a-modal
    :visible="visible"
    title="批量审核"
    :width="700"
    :confirmLoading="confirmLoading"
    @cancel="() => { $emit('cancel') }"
    @ok="submit"
  >
    <a-form :form="form" style="margin-top: 10px">
      <a-row>
        <a-col :md="16" :sm="24">
          <a-form-item
            label="专业学位办备案"
            :labelCol="{span: 8,offset: 1}"
            :wrapperCol="{span: 8, offset: 1}"
          >
            <a-select v-decorator="['shjg',
              {
                rules: [{ required: true, message: '请选择专业学位办备案!' }],
              }]">
              <a-select-option value="07">专业学位办已备案</a-select-option>
              <a-select-option value="08">专业学位办未备案</a-select-option>
            </a-select>
          </a-form-item>
        </a-col>
        <!-- <a-col :md="16" :sm="24">
          <a-form-item
            label="审核意见"
            :labelCol="{span: 7,offset: 1}"
            :wrapperCol="{span: 15, offset: 1}"
          >
            <a-input type="textarea" v-decorator="['shsm']" :autosize="{ minRows: 4, maxRows: 6 }"/>
          </a-form-item>
        </a-col> -->
      </a-row>
    </a-form>
  </a-modal>
</template>

<script>


export default {
  props: {
    visible: Boolean
  },
  beforeCreate () {
    this.form = this.$form.createForm(this)
  },
  data() {
    return {
      confirmLoading: false
    }
  },
  methods: {
    submit(){
      this.form.validateFields((err, values) => {
        if (err) {
          return
        }
        this.$emit('confirm', values)
        // this.$api.cultivate.courseCheck({ids: this.ids.join(','), shzt: values.shzt, shsm: values.shsm}).then(() => {
        //   this.$message.success('审核成功')
        //   this.$emit('cancel')
        //   this.$emit('doRefresh')
        // })
      })
    }
  }
}
</script>

<style>

</style>
